package cn.kgc.service.impl;

import cn.kgc.mapper.JobpostingMapper;
import cn.kgc.pojo.Jobposting;
import cn.kgc.service.JobpostingService;
import cn.kgc.util.Page;
import com.alibaba.dubbo.config.annotation.Service;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;
@Service
public class JobpostingServiceImpl implements JobpostingService {
    @Resource
    private JobpostingMapper jobpostingMapper;

    public List<Jobposting> findById(Integer resumeId) {
        return jobpostingMapper.findById(resumeId);
    }

    public List<Jobposting> findAll() {
        return null;
    }

    public int save(Jobposting jobposting) {
        return jobpostingMapper.save(jobposting);
    }

    public int delete(Serializable id) {
        return 0;
    }

    public int update(Jobposting jobposting) {
        return 0;
    }

    public List<Jobposting> query(Object params) {
        return null;
    }

    public Page queryByPage(Object params, Page page) {
        return null;
    }

    public Integer getCount() {
        return jobpostingMapper.getCount();
    }

    public List<Jobposting> getJbposting(Integer userId) {
        return jobpostingMapper.getJbposting(userId);
    }

    public List<Jobposting> getHasJbposting(Integer userId) {
        return jobpostingMapper.getHasJbposting(userId);
    }

    public List<Jobposting> getNoJbposting(Integer userId) {
        return jobpostingMapper.getNoJbposting(userId);
    }

    public List<Jobposting> getJbpostingXiajia(Integer userId) {
        return jobpostingMapper.getJbpostingXiajia(userId);
    }

    public Integer updateJobposting(Integer resumeId,Integer state) {
        return jobpostingMapper.updateJobposting(resumeId,state);
    }

    public List<Jobposting> selectJobposting(Integer positionId, String workCity, String monthly) {
        return null;
    }
}
